package com.cloudlead.common.lang.api;

import java.io.Serializable;

/**
 * 异常定义
 * 
 * @author dean.lu
 * 
 */
public class ErrorMeta implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3305023258579026377L;

	private String message;

	private String errorClass;

	private Integer module;

	private String causeMessage;

	private String causeException;

	private String causeClass;

	private String causeClassMethod;

	private Integer causeClassLine;

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getErrorClass() {
		return errorClass;
	}

	public void setErrorClass(String errorClass) {
		this.errorClass = errorClass;
	}

	public Integer getModule() {
		return module;
	}

	public void setModule(Integer module) {
		this.module = module;
	}

	public String getCauseMessage() {
		return causeMessage;
	}

	public void setCauseMessage(String causeMessage) {
		this.causeMessage = causeMessage;
	}

	public String getCauseClass() {
		return causeClass;
	}

	public void setCauseClass(String causeClass) {
		this.causeClass = causeClass;
	}

	public String getCauseException() {
		return causeException;
	}

	public void setCauseException(String causeException) {
		this.causeException = causeException;
	}

	public String getCauseClassMethod() {
		return causeClassMethod;
	}

	public void setCauseClassMethod(String causeClassMethod) {
		this.causeClassMethod = causeClassMethod;
	}

	public Integer getCauseClassLine() {
		return causeClassLine;
	}

	public void setCauseClassLine(Integer causeClassLine) {
		this.causeClassLine = causeClassLine;
	}

	@Override
	public String toString() {
		return String
				.format("{ErrorMeta:{message:%s, causeMessage:%s, causeException:%s, causeClass:%s, causeClassMethod:%s, causeClassLine:%s}}",
						message, causeMessage, causeException, causeClass,
						causeClassMethod, causeClassLine);
	}

}
